package org.dromara.pe.domain.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.pe.domain.DeviceApiLog;

import java.io.Serial;
import java.io.Serializable;


/**
 * 【请填写功能名称】视图对象 phy_device_api_log
 *
 * @author Lion Li
 * @date 2024-09-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = DeviceApiLog.class)
public class DeviceApiLogVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 接口日志id
     */
    @ExcelProperty(value = "接口日志id")
    private Long id;

    /**
     * 接口id
     */
    @ExcelProperty(value = "接口id")
    private Long apiId;

    /**
     * 调用类型（0-计划性 1-关联触发 2-指令操作）
     */
    @ExcelProperty(value = "调用类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=-计划性,1=-关联触发,2=-指令操作")
    private Integer type;

    /**
     * 调用参数
     */
    @ExcelProperty(value = "调用参数")
    private String param;

    /**
     * 0未完成,1成功,2失败,3异常,4直接入库
     */
    @ExcelProperty(value = "0未完成,1成功,2失败,3异常,4直接入库")
    private Long status;

    /**
     * 请求返回的数据 以json格式存储
     */
    @ExcelProperty(value = "请求返回的数据 以json格式存储")
    private String data;

    /**
     * 对方传来的logId
     */
    @ExcelProperty(value = "对方传来的logId")
    private Long logId;


}
